package edu.pk.mc.breakthebrick;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class ArrangementActivity extends Activity {

//	private static Map<Integer, Class<? extends Activity>> map = new HashMap<Integer, Class<? extends Activity>>();
//	
//	static{
//		map.put(R.id.button1, GameActivity.class);
//		//map.put(R.id.button2, InstructionActivity.class);
//	}
	public void click(View v){
		Intent i=new Intent (this,GameActivity.class);
		Button btn=(Button) findViewById(R.id.beginner);
		Button btn2=(Button) findViewById(R.id.inter);
		Button btn3=(Button) findViewById(R.id.expert);
		String name="";
		if(btn.isPressed())
			name=btn.getText().toString();
		else if(btn2.isPressed())
			name=btn2.getText().toString();
		else if(btn3.isPressed())
			name=btn3.getText().toString();
		i.putExtra("level",name);
		startActivity(i);
	}
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_arrangement);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.arrangement, menu);
		return true;
	}

}
